package com.zhuoyue.biz.core.api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhuoyue.biz.core.api.domain.base.BaseDoClass;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.zhuoyue.biz.core.api.dto.req.SolVoiceSetSceneReqDTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * @author wjming
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`set_sol_voice_scene`")
public class SetSolVoiceScene extends BaseDoClass implements Serializable {
    /**
     * 语音设备ID
     */
    @TableField(value = "`voice_id`")
    private String voiceId;

    /**
     * 结束设备ID
     */
    @TableField(value = "`end_scene_id`")
    private String endSceneId;

    /**
     * 子索引编号1-8
     */
    @TableField(value = "`scene_child_od`")
    private Integer sceneChildOd;

    /**
     * 语音场景编号
     */
    @TableField(value = "`voice_scene_number`")
    private String voiceSceneNumber;

    /**
     * 语音指令名称
     */
    @TableField(value = "`voice_command_name`")
    private String voiceCommandName;

    private static final long serialVersionUID = 1L;

    public SetSolVoiceScene dtoToDo(SolVoiceSetSceneReqDTO solVoiceSetScene) {
        BeanUtils.copyProperties(solVoiceSetScene, this);
        return this;
    }
}